#print("Give me two numbers, and I'll divide them.")
#print("Enter 'q' to quit.")
#while True:
#    first_number = input("\nFirst number: ")
#    if first_number == 'q':
#        break
#    second_number = input("Second number: ")
#    if second_number == 'q':
#        break
#    try:
#        answer = int(first_number) / int(second_number)
#    except ZeroDivisionError:
#        print("You can't divide by 0!")
#    else:
#        print(answer)

file_name = '67774-0.txt'

try:
    with open(file_name,'r',encoding='gb18030', errors='ignore') as file_object:
        file_contain = file_object.read()
except FileNotFoundError:
    print('please check your file route')
else:   
    words = file_contain.split()
    num_of_words = len(words)
    print("The file " + file_name + " has about " + str(num_of_words) + " words.")
    print("The file " + file_name + " has about " + str(words.count('the')) + " the.")

